package edu.put.sk.nrpp;
import java.util.*;

import edu.put.sk.nrpp.ui.ExampleWindow;


/*

$Rev: 16 $:     Revision of last commit
$Author: marcinwolicki $:  Author of last commit
$Date: 2010-11-21 01:16:40 +0100 (Sun, 21 Nov 2010) $:    Date of last commit
$HeadURL: https://marcinwolicki@network-routing-protocols-presenter.googlecode.com/svn/trunk/nrpp/src/edu/put/sk/Network.java $:
$Id: Network.java 16 2010-11-21 00:16:40Z marcinwolicki $:

*/

abstract public class Network extends Observable implements Runnable {
	
	
	@Override
	public void run() {
		protocolMachine();
	}
	
	abstract protected void protocolMachine();
	
	protected ExampleWindow observerList=null;
	
	
	public void addObserver(ExampleWindow window){
		observerList=window;
	}
	
}
